package com.tap.service.impl;

import com.tap.common.BaseResult;
import com.tap.mapper.NewPlayMapper;
import com.tap.pojo.Game;
import com.tap.service.NewPlayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewPlayServiceImpl implements NewPlayService {

    @Autowired
    NewPlayMapper newPlayMapper;

    @Override
    public BaseResult findNewPlayAll() {
        List<Game> list = newPlayMapper.findNewPlayAll();
        BaseResult baseResult = new BaseResult();
        baseResult.setData(list);
        baseResult.setCode(1);
        return baseResult;
    }
}
